package com.peng.test.obj;

import org.openjdk.jol.info.ClassLayout;

/**
 * JolSync
 *
 * @author: lupeng6
 * @create: 2021/1/25 21:49
 */
public class JolSync {

    public static void main(String[] args) {
        Object object = new Object();
        System.out.println(ClassLayout.parseInstance(object).toPrintable());

        System.out.println("----------------------");

        synchronized (object) {
            System.out.println(ClassLayout.parseInstance(object).toPrintable());
        }
    }
}
